<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <style>
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
    </style>
    <script>
        let countdown = 3;
        document.addEventListener('DOMContentLoaded', function () {
            const countdownElement = document.getElementById('countdown');
            const intervalId = setInterval(() => {
                countdownElement.textContent = countdown;
                if (countdown === 0) {
                    clearInterval(intervalId);
                    window.location.href = 'news.html';
                }
                countdown--;
            }, 1000);
        });
    </script>
</head>

<body class="bg-gradient-to-r from-cyan-500 to-blue-500 flex justify-center items-center min-h-screen m-0">
    <div class="bg-white p-8 rounded-lg shadow-lg animate-fadeIn">
        <h1 class="text-3xl font-bold text-center text-blue-600 mb-4 animate-slideIn">登陆成功</h1>
        <p class="text-lg text-center animate-slideIn">即将在 <span id="countdown" class="text-red-600 font-bold">3</span>
            秒后跳转到新闻页面</p>
    </div>
</body>

</html>